vr2-5-03.wrl
[ VRML source code ]
#VRML V2.0 utf8
#vr2-5-2.wrl
Group {
children [
DEF Timer TimeSensor {
cycleInterval 5.0
loop TRUE
},
DEF Rot OrientationInterpolator {
key [0.0, 0.2, 0.4, 0.6, 0.7, 0.9, 1.0]
keyValue [
0 1 0 0.5,
0 1 0 1.0,
0 1 0 1.5,
0 1 0 2.0,
0 1 0 2.5,
0 1 0 3.0,
0 1 0 3.1415
]
},
DEF Leaf Transform {
children [
Transform {
scale 1 1.5 0.01
children Shape {
appearance DEF Green Appearance {
material Material {
diffuseColor 0 1 0
}
}
geometry Sphere {
radius 10
}
}
}
Transform {
scale 1 1 0.01
translation 0 15 0
children Shape {
appearance USE Green
geometry Cone {
bottomRadius 9.6
height 20
}
}
}
Transform {
translation 0 -5 0
children Shape {
appearance DEF Trunck Appearance {
material Material {
diffuseColor 0.5 1 0
}
}
geometry Cone {
bottomRadius 2
height 50
}
}
}
Transform {
translation -5 -5 0
rotation 0 0 1 1
children DEF Tube1 Shape {
appearance USE Trunck
geometry Cone {
bottomRadius 1
height 10
}
}
}
Transform {
translation 5 -5 0
rotation 0 0 1 -1
children USE Tube1
}
Transform {
translation 4 0 0
rotation 0 0 1 -1
scale 0.8 0.8 0.8
children USE Tube1
}
Transform {
translation -4 0 0
rotation 0 0 1 1
scale 0.8 0.8 0.8
children USE Tube1
}
Transform {
translation 3 5 0
rotation 0 0 1 -1
scale 0.6 0.6 0.6
children USE Tube1
}
Transform {
translation -3 5 0
rotation 0 0 1 1
scale 0.6 0.6 0.6
children USE Tube1
}
Transform {
translation 2 10 0
rotation 0 0 1 -1
scale 0.4 0.4 0.4
children USE Tube1
}
Transform {
translation -2 10 0
rotation 0 0 1 1
scale 0.4 0.4 0.4
children USE Tube1
}
]
}
]
}
ROUTE Timer.fraction_changed TO Rot.set_fraction
ROUTE Rot.value_changed TO Leaf.set_rotation